package cn.yeziji.file;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 论坛文件服务启动类
 *
 * @author gzkemays
 * @since 2022/5/12 8:17
 */
@SpringBootApplication
@EnableDubbo
@ComponentScan(
    basePackages = {
      "cn.yeziji.forum.exception",
      "cn.yeziji.forum.common",
      "cn.yeziji.forum.config",
      "cn.yeziji.forum.utils",
      "cn.yeziji.file.service",
      "cn.yeziji.file.converter",
      "cn.yeziji.file.config",
      "cn.yeziji.file.aspect",
      "cn.yeziji.file.listener",
      "cn.yeziji.file.controller"
    })
@ConfigurationPropertiesScan(basePackages = {"cn.yeziji.file.basic"})
@EnableAsync
public class ForumFileApplication {
  public static void main(String[] args) {
    SpringApplication.run(ForumFileApplication.class, args);
  }
}
